<?php
define('InDesign', 1);

require './main/common.inc.php';

MVCROOT::loadView('main/index');

loadDataBase();

class MVCExtendedSimple extends MVCECBase {
    public $ExtendedFunctions=array('load');
    public $ECName='tester/simple';
    function _load() {
        echo 'Can I Run?<br/>';
    }
}


MVCHK::addHook('tester/simple', 'load', 'MVCExtendedSimpleHook');
MVCHK::addListener('tester/simple', 'load', 'MVCExtendedSimpleHook2', PRE_LISTENER);

$a=new MVCExtendedSimple;
$a->load();

//db::queryf("insert into `^user` set `user`='%s', `pass`='%s'", 'lootan', md5('34042199'));

//print_d($_SERVER, 'pass-by');

function MVCExtendedSimpleHook() {
    echo 'Yes! I kill it.<br/>';
    return array(INLN_SKIP, array());
}
function MVCExtendedSimpleHook2() {
    echo 'I listener it.<br/>';
}
